package com.qipay.cpchannel.service;

import com.qipay.baas.model.CpChannel;

import java.util.List;

public interface CpChannelService {

    CpChannel get(long id);

    int updateState(long id, byte state);

    int insert(CpChannel cpChannel);

    int update(CpChannel cpChannel);
    int delete(long id);

    List<CpChannel> selectByCpId(long cpid,int p,int pz);

    long countByCpId(long cpid);

    CpChannel getByCpIdAndChannelType(Long cpId, Byte type);

    CpChannel getAgentChannel(CpChannel childChannel);

    int updateChildCpState(long agentId,byte channelType,byte state);
}
